const Layout = () => import(/* webpackChunkName: "home" */ "@/views/layout.vue");

const EngineeringManage = () => import("@/views/engineeringManage");
const ProjectPayment = () => import("@/views/projectPayment");
const ContractingManagement = () => import("@/views/contractingManagement/list/index.vue");
const ContractingDetails = () => import("@/views/contractingManagement/details/index.vue");
const BiddingManagement = () => import("@/views/biddingManagement/index.vue");

export default [
  {
    path: "/",
    name: "home",
    component: Layout,
    redirect: "/engineering-manage",
    children: [
      {
        path: "/engineering-manage",
        name: "engineeringManage",
        component: EngineeringManage,
        meta: {
          title: "工程管理",
          keepAlive: true
        }
      },
      {
        path: "/project-payment",
        name: "ProjectPayment",
        component: ProjectPayment,
        meta: {
          title: "项目款管理",
          keepAlive: true
        }
      },
      {
        path: "/contracting-management",
        name: "contractingManagement",
        component: ContractingManagement,
        meta: {
          title: "发包管理",
          keepAlive: true
        }
      },
      {
        path: "/contracting-details",
        name: "contractingDetails",
        component: ContractingDetails,
        meta: {
          title: "发包信息",
          keepAlive: true
        }
      },
      {
        path: "/bidding-management",
        name: "biddingManagement",
        component: BiddingManagement,
        meta: {
          title: "发包价管理",
          keepAlive: true
        }
      },
      {
        path: "/material-application",
        name: "materialApplication",
        component: () => import("@/views/engineeringManage/materialApplication"),
        meta: {
          title: "材料申领"
        }
      }
    ]
  }
];
